<!doctype html>
<!--[if lt IE 7 ]><html class="ie6 inquire-form no-js" lang="zh-CN"><![endif]-->
<!--[if IE 7 ]><html class="ie7 inquire-form no-js" lang="zh-CN"><![endif]-->
<!--[if IE 8 ]><html class="ie8 inquire-form no-js" lang="zh-CN"><![endif]-->
<!--[if IE 9 ]><html class="ie9 inquire-form no-js" lang="zh-CN"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html class="inquire-form no-js" lang="zh-CN">
<!--<![endif]-->
<head>
<title>智慧网-录取率</title>
<meta name="keywords" content="">
<meta name="description" content="">
@@include('../tpl.headarea.metatag.html')
@@include('../tpl.headarea.common.html')
<link href="../../css/subpage.css" rel="stylesheet" type="text/css">
<link href="../../js/library/jquery_plugins/icheck/square/red.css">
@@include('../tpl.headarea.common.part1.html')
</head>
<body>
@@include('../tpl.global.header.html')
@@include('../tpl.global.navbar.html')
<main id="sp_main" class="g-wrapper remark-wrapper">
  <section class="sp-banner-bar remark-banner-bar"> <a href="javascript:void(0)"><img src="../../images/subpage/admission-banner.jpg" alt=""></a> </section>
  <section class="n-latest-sect z-school-review bg6">
    <div class="container">
      <h3 class="admit-idx-hd"><span><img src="../../images/subpage/admit-rate-ico1.png" alt=""></span>初升高录取率查询</h3>
      <form class="admit-form J_form" action-param="" ajaxUrl="../../images/temp__/valid.php"  data-token="">
        <ul>
          <li class="nth1">
            <label>考生姓名</label>
            <input type="text" name="name" value="" autocomplete="off" placeholder="输入考生真实姓名" datatype="/[a-zA-Z]{1,20}|[\u4e00-\u9fa5]{1,10}/" nullmsg="姓名不能为空" errormsg="请填写正确的姓名" sucmsg=" ">
          </li>
          <li class="nth1">
            <label>考生分数</label>
            <input type="text" name="score" value="" autocomplete="off" placeholder="输入考生中考分数" datatype="n" nullmsg="分数不能为空" errormsg="请填写正确的分数" sucmsg=" ">
          </li>
          <!--
					<li class="nth2">
						<label class="lbl-nth2">学校属性</label>
						<div class="lbl-nth2">
							<label><input type="radio" class="J_icheck" name="identity" checked />公立</label>
							<label><input type="radio" class="J_icheck"  name="identity" />私立</label>
						</div>
					</li>
-->
          <li class="school-name mt-40 pt-40 z-lintbm">
            <label>学校名称</label>
            <input type="text" name="score" value="" autocomplete="off" class="J_schoolnm" placeholder="输入欲报考的学校名称" datatype="*" nullmsg="学校名称不能为空" errormsg="请填写正确的学校名称" sucmsg=" " ajaxurl="../../images/temp__/datas.php">
            <div class="zsc-list-panel">
              <dl class="school-list J_seachlist" >
								<dd><a href="javascript:void(0)">khgb</a></dd>
                <dd><a href="javascript:void(0)">khgb</a></dd>
              </dl>
            </div>
          </li>
          <li>
            <button class="inquire-btn J_submit">立即查询<em class="fa fa-angle-right"></em></button>
          </li>
        </ul>
      </form>
    </div>
  </section>
</main>
@@include('../tpl.global.footer.html') 
<script>
$app.common_module = ['common'];
$app.controller = '';
seajs.use($app.entrance,function(){
	var currentAjax = null;
   $('.J_schoolnm').on('input',function(){
		  $(this).parent().find('.zsc-list-panel').show();
		  var seachLsit = $('.J_seachlist'),
			    _this = this,
			    oValue=$(this).val(),
			    ajaxUrl = $(this).attr('ajaxurl');
			 $.ajax({
					url:ajaxUrl,
					type:'POST',
					data:{
						val:oValue,
					}
				})
		 .done(function(res){
			 _htmlData = '';
			// res = eval('(' + res + ')');
			 if(res.code==200){
				for( var i = 0; i < res.data.list.length; i++ ){
					_htmlData+='<dd>'+
						          '<a href="javascrpt:void(0)">'+ res.data.list[i].sub +'</a>'+
											'</dd>' ;
				   }
				}else{
					_htmlData = '<dd class="noHas"></dd>';
				}
				seachLsit.html(_htmlData);
       
			})
			.fail(function(){
				_htmlData = '<dd class="noHas">出错了</dd>';
				seachLsit.append(_htmlData);
				_this.loadflag = 0;
			});
	 })
	 //搜索结果的点击事件
	 $('body').on('click','.J_seachlist  a',function(){
		   var text=$(this).text();
	     $(this).parents('.school-name').find('.J_schoolnm').val(text)
    	$(this).parents('.school-name').find('.zsc-list-panel').hide();
  	
	 })
	 $(document).click(function(e){
		var _con = $('.tardiv');   // 设置目标区域
		if(!_con.is(e.target) && _con.has(e.target).length === 0){
				 $('.zsc-list-panel').hide();
		}
	});
	 
});
</script>
</body>
</html>